import {defineStore} from "pinia";
import {Graph} from "@maxgraph/core";
import {ref} from "vue";

export const useGraphStore = defineStore('graph', ()=>{
    const graphRef = ref<Graph>();
    function initGraph(graph2: Graph) {
        graphRef.value = graph2;
    }
    return {
        graphRef,
        initGraph
    }
})